package com.android.camera2.host;

import android.app.Activity;
import android.os.Bundle;

import androidx.annotation.Nullable;

public abstract class QuickActivity extends Activity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        onCreateTask();
    }

    @Override
    protected void onStart() {
        super.onStart();
        onStartTask();
    }

    @Override
    protected void onResume() {
        super.onResume();
        onResumeTask();
    }

    @Override
    protected void onPause() {
        super.onPause();
        onPauseTask();
    }

    @Override
    protected void onStop() {
        super.onStop();
        onStopTask();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        onDestroyTask();
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        onReStartTask();
    }

    protected abstract void onCreateTask();

    protected abstract void onStartTask();

    protected abstract void onResumeTask();

    protected abstract void onPauseTask();

    protected abstract void onStopTask();

    protected abstract void onDestroyTask();

    protected abstract void onReStartTask();

}
